package com.jzo2o.market.controller.Operation;

import com.jzo2o.common.model.PageResult;
import com.jzo2o.market.model.dto.request.CouponOperationPageQueryReqDTO;
import com.jzo2o.market.model.dto.response.CouponInfoResDTO;
import com.jzo2o.market.service.ICouponService;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author LeeC
 * @description
 * @date 2025/2/12
 * @PACKAGE_NAME com.jzo2o.market.controller
 */
@RequestMapping("/operation/coupon")
@RestController("marketOperationCouponController")
@Api(tags = "运营端 - 优惠卷")
public class OperationCouponController {
    @Resource
    private ICouponService couponService;
    @GetMapping("/page")
    public PageResult<CouponInfoResDTO> page(CouponOperationPageQueryReqDTO pageReqDTO) {
        return couponService.page(pageReqDTO);
    }
}
